package com.myappengine.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.myappengine.dao.PersonDAO;
import com.myappengine.model.Person;

@Service
public class PersonService {
	
	@Autowired
	private PersonDAO personDAO;
	
	public void savePerson(Person person) {
		personDAO.savePerson(person);
	}
	
	public List<Person> getAllPerson() throws Exception {
		return personDAO.getAllPerson();
	}
}
